package com.itlong.cloud.operate.dao;

import com.itlong.cloud.POJO.PO.OperateSceneUserTypePO;
import com.itlong.cloud.abstracts.IAbstractBaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 * 人员类型信息数据访问接口
 * </desc>
 *
 * @createDate 2021-03-25
 */
@Mapper
@Repository
public interface IOperateSceneUserTypeDao extends IAbstractBaseDao<OperateSceneUserTypePO> {

    /**
     * <desc>
     * 添加人员类型
     * <desc/>
     *
     * @param params 保存参数
     * @return
     * @author zhouchun
     * @createDate 2021-03-25
     */
    Integer save(Map<String, Object> params);

    Integer update(OperateSceneUserTypePO m);

    List<OperateSceneUserTypePO> getListByIds(@Param("ids") String ids);

    OperateSceneUserTypePO getOneByUserTypeId(@Param("userTypeId") String userTypeId);

    Integer deleteByUserTypeIdsNotIn(@Param("sceneId") String sceneId, @Param("userTypeIds") String userTypeIds);

}